package com.xixi.demo02.filter;

import javax.servlet.*;
import javax.servlet.annotation.WebFilter;
import java.io.IOException;

@WebFilter(filterName = "LoginFilter")
public class LoginFilter implements Filter {
    public void destroy() {
        //销毁
    }
    public void doFilter(ServletRequest req, ServletResponse resp, FilterChain chain) throws ServletException, IOException {
       //TODO处理逻辑，必须调用下面方法
        chain.doFilter(req, resp);
    }
    public void init(FilterConfig config) throws ServletException {
    //初始化
    }

}
